#pragma once

#include "resource.h"
#include "afxcmn.h"
#include "ResizableDialog.h"

class CEphemParam;

class CEphemParamDlg : public CResizableDialog
{
	DECLARE_DYNAMIC(CEphemParamDlg)
	enum { IDD = IDD_DIALOG_EPHEM_PARAM };
public:
	CEphemParamDlg(CEphemParam *pEphem, CWnd* pParent = NULL);   // standard constructor
	virtual ~CEphemParamDlg();

	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButtonAdd();
	afx_msg void OnBnClickedButtonRemove();
	afx_msg void OnLvnItemchangedListEphems(NMHDR *pNMHDR, LRESULT *pResult);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	DECLARE_MESSAGE_MAP()


	bool SetHeader();
	bool FillData();
	bool AddLine(int nIndex, LPCTSTR strName, LPCTSTR strPath, bool bSet);
protected:
	CListCtrl		m_list;
	CEphemParam *	m_pEphem;

};

// =============================================================== //


class EphemPathDlg : public CDialog
{
	DECLARE_DYNAMIC(EphemPathDlg)

public:
	EphemPathDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~EphemPathDlg();

// Dialog Data
	enum { IDD = IDD_DIALOG_EPHEM_PATH };
	afx_msg void OnBnClickedButtonPath();
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CString m_strName;
	CString m_strPath;
	
protected:
	virtual void OnOK();
};
